package com.chenyue.cm.live.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 直播间抢金币-平台额度分配
 * </p>
 *
 * @author Lbx
 * @since 2021-09-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "JdLiveGoldAward对象", description = "直播间抢金币-平台额度分配")
public class JdLiveGoldAward extends Model<JdLiveGoldAward> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "直播记录id")
    private Integer liveRecordId;

    @ApiModelProperty(value = "分配金币总额")
    private Integer goldAmount;

    @ApiModelProperty(value = "开始领取时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date getTime;

    @ApiModelProperty(value = "每次领取数额")
    private Integer onceAmount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
